﻿using System;
using FreeSql.DataAnnotations;

namespace App.Model.Main
{
    /// <summary>
    /// 系统文件
    /// </summary>
    //[Table(Name = "sys_file")]
    public class SysFile : EntityBase<int>
    {
        /// <summary>
        /// 物理路径
        /// </summary>
        [Column(StringLength = 200)]
        public string Url { get; set; }

        /// <summary>
        /// 宽度
        /// </summary>
        public int? Width { get; set; }

        /// <summary>
        /// 高度
        /// </summary>
        public int? Height { get; set; }

        /// <summary>
        /// 类型
        /// </summary>       
        [Column(StringLength = 200)]
        public string Type { get; set; }

        /// <summary>
        /// 帧数
        /// </summary>
        public int? Frames { get; set; }

        /// <summary>
        /// 扩展名
        /// </summary>
        [Column(StringLength = 20)]
        public string Ext { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary> 
        public int? Filesize { get; set; }

        /// <summary>
        /// mime类型
        /// </summary>
        [Column(StringLength = 200)]
        public string MimeType { get; set; }

        /// <summary>
        /// 透传数据
        /// </summary>
        [Column(StringLength = 2000)]
        public string Extparam { get; set; }

        /// <summary>
        /// 存储位置
        /// </summary>
        [Column(StringLength = 2000)]
        public string Storage { get; set; }

        /// <summary>
        /// 文件 sha1编码
        /// </summary>
        [Column(StringLength = 200)]
        public string Sha1 { get; set; }

        /// <summary>
        /// 文件组id
        /// </summary>
        public int? SysFileGroupId { get; set; }

        /// <summary>
        /// 文件名
        /// </summary>
        [Column(StringLength = 200)]
        public string FileName { get; set; }
    }
}


